The stateID attribute - 2000 states plus Error identifies the state whose attributes are defined in the state element. The stateId attribute is the first attribute in the state element.
The multistateButton and symbol graphic object elements contain this attribute.
FactoryTalk View equivalent: State